#pragma once

#include "cocos2d.h"
#include "character.h"

USING_NS_CC;

class CPC;

class CPCManager
{
public:
	void Init();
	void Update(ccTime& dt);

	CPC* GetMe();
	void InsertPCToPCList(CPC* pc);

	static CPCManager* GetThis();
	static void SetThis(CPCManager* newThis) { _this = newThis; }

private:
	static CPCManager* _this;

	CCMutableDictionary<UINT, CPC*> _pclist;
	CPC* _me;
};